package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="SY_TZ"
 *     
*/
public class SyTz implements Serializable {

    /** identifier field */
    private String tzbh;

    /** persistent field */
    private String tzbt;

    /** nullable persistent field */
    private String tznr;

    /** persistent field */
    private String tzlxDm;

    /** persistent field */
    private String dwbh;

    /** nullable persistent field */
    private String tzfj;

    /** persistent field */
    private String bjrq;

    /** persistent field */
    private String xtzBz;

    /** persistent field */
    private String jjtzBz;

    /** nullable persistent field */
    private String sx;

    /** nullable persistent field */
    private String zt1;

    /** nullable persistent field */
    private String zt2;

    /** full constructor */
    public SyTz(String tzbh, String tzbt, String tznr, String tzlxDm, String dwbh, String tzfj, String bjrq, String xtzBz, String jjtzBz, String sx, String zt1, String zt2) {
        this.tzbh = tzbh;
        this.tzbt = tzbt;
        this.tznr = tznr;
        this.tzlxDm = tzlxDm;
        this.dwbh = dwbh;
        this.tzfj = tzfj;
        this.bjrq = bjrq;
        this.xtzBz = xtzBz;
        this.jjtzBz = jjtzBz;
        this.sx = sx;
        this.zt1 = zt1;
        this.zt2 = zt2;
    }

    /** default constructor */
    public SyTz() {
    }

    /** minimal constructor */
    public SyTz(String tzbh, String tzbt, String tzlxDm, String dwbh, String bjrq, String xtzBz, String jjtzBz) {
        this.tzbh = tzbh;
        this.tzbt = tzbt;
        this.tzlxDm = tzlxDm;
        this.dwbh = dwbh;
        this.bjrq = bjrq;
        this.xtzBz = xtzBz;
        this.jjtzBz = jjtzBz;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="TZBH"
     *         
     */
    public String getTzbh() {
        return this.tzbh;
    }

    public void setTzbh(String tzbh) {
        this.tzbh = tzbh;
    }

    /** 
     *            @hibernate.property
     *             column="TZBT"
     *             length="200"
     *             not-null="true"
     *         
     */
    public String getTzbt() {
        return this.tzbt;
    }

    public void setTzbt(String tzbt) {
        this.tzbt = tzbt;
    }

    /** 
     *            @hibernate.property
     *             column="TZNR"
     *             length="2000"
     *         
     */
    public String getTznr() {
        return this.tznr;
    }

    public void setTznr(String tznr) {
        this.tznr = tznr;
    }

    /** 
     *            @hibernate.property
     *             column="TZLX_DM"
     *             length="2"
     *             not-null="true"
     *         
     */
    public String getTzlxDm() {
        return this.tzlxDm;
    }

    public void setTzlxDm(String tzlxDm) {
        this.tzlxDm = tzlxDm;
    }

    /** 
     *            @hibernate.property
     *             column="DWBH"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getDwbh() {
        return this.dwbh;
    }

    public void setDwbh(String dwbh) {
        this.dwbh = dwbh;
    }

    /** 
     *            @hibernate.property
     *             column="TZFJ"
     *             length="200"
     *         
     */
    public String getTzfj() {
        return this.tzfj;
    }

    public void setTzfj(String tzfj) {
        this.tzfj = tzfj;
    }

    /** 
     *            @hibernate.property
     *             column="BJRQ"
     *             length="14"
     *             not-null="true"
     *         
     */
    public String getBjrq() {
        return this.bjrq;
    }

    public void setBjrq(String bjrq) {
        this.bjrq = bjrq;
    }

    /** 
     *            @hibernate.property
     *             column="XTZ_BZ"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getXtzBz() {
        return this.xtzBz;
    }

    public void setXtzBz(String xtzBz) {
        this.xtzBz = xtzBz;
    }

    /** 
     *            @hibernate.property
     *             column="JJTZ_BZ"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getJjtzBz() {
        return this.jjtzBz;
    }

    public void setJjtzBz(String jjtzBz) {
        this.jjtzBz = jjtzBz;
    }

    /** 
     *            @hibernate.property
     *             column="SX"
     *             length="10"
     *         
     */
    public String getSx() {
        return this.sx;
    }

    public void setSx(String sx) {
        this.sx = sx;
    }

    /** 
     *            @hibernate.property
     *             column="ZT1"
     *             length="50"
     *         
     */
    public String getZt1() {
        return this.zt1;
    }

    public void setZt1(String zt1) {
        this.zt1 = zt1;
    }

    /** 
     *            @hibernate.property
     *             column="ZT2"
     *             length="50"
     *         
     */
    public String getZt2() {
        return this.zt2;
    }

    public void setZt2(String zt2) {
        this.zt2 = zt2;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("tzbh", getTzbh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof SyTz) ) return false;
        SyTz castOther = (SyTz) other;
        return new EqualsBuilder()
            .append(this.getTzbh(), castOther.getTzbh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getTzbh())
            .toHashCode();
    }

}
